Ventilator mode change